import com.example.demo.chap2.Demo;
import jakarta.ws.rs.core.Application;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;



public class java_test {
        @Test
        public void test01(){
                System.out.println("JAVA 注入");
                ApplicationContext context = new AnnotationConfigApplicationContext(JAVA_Config.class);
                JAVA been=context.getBean(JAVA.class);
                been.setMessage("作业作业作业.");
                been.dissplay();
        }
}